package com.google.code.fluentjoiner;

import com.google.common.base.Supplier;

public abstract class AbstractSupplierBuilder<T> extends SupplierBuilder<T>
{
    @Override
    public Supplier<T> getSupplier()
    {
        return new SerializableSupplier<T>()
        {
            @Override
            public T get()
            {
                return getSupplierResult();
            }
        };
    }

    protected abstract T getSupplierResult();
}